ACPI / table: add new function to get table entries
authorAshwin Chaugule <ashwin.chaugule@linaro.org>
Mon, 18 Jan 2016 13:54:08 +0000 (14:54 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jan 2016 13:54:08 +0000 (14:54 +0100)
commit9403c732cbc9ba49b82ed280adc6ae4850ff8a69
treee411590a9d4dcffd0eae223466f6b97ef5340db0
parent865d791263eb55c470979b2a22c4ff0568a920a3
ACPI / table: add new function to get table entries

The acpi_table_parse() function has a callback that
passes a pointer to a table_header. Add a new function
which takes this pointer and parses its entries. This
eliminates the need to re-traverse all the tables for
each call. e.g. as in acpi_table_parse_madt() which is
normally called after acpi_table_parse().

Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[Linux commit f08bb472bff3c0397fb7d6f47bc5cec41dad76e3]
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
xen/drivers/acpi/tables.c
xen/include/xen/acpi.h